package indi.zhang.rabbitlistener.listener;

import indi.zhang.mq.MessageContent;
import indi.zhang.rabbitlistener.config.RabbitConfig;
import indi.zhang.rabbitmq.listener.RabbitMqTlogListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@RabbitListener(queues = RabbitConfig.EXCEPTION_LOG_QUEUE)
public class MyNewConsumer extends RabbitMqTlogListener {
    @Override
    public void deal(MessageContent data) {
        log.info(data.toString());
    }
}
